<include file="Public:header" />
<form class="form-inline definewidth m20" action="{:U('Home/FaultRecords/index')}" method="get">    
    记录编号：
    <input type="text" name="records_no" id="records_no"class="abc input-default" placeholder="" value="{$records_no}"> 
    <button type="submit" class="btn btn-primary" name="search">查询</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <select name="type" id="sta-type">
        <option value="1">分设备查询</option>
        <option value="2" selected >总体查询</option>
    </select>
    <button type="submit" class="btn" name="statistics">故障统计</button>
    <button type="button" class="btn btn-success" id="addnew">新增记录</button>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th></th>
        <th>设备编号</th>
        <th>设备名称</th>
        <th>故障次数</th>
        <th>统计区间</th>
        <th>操作</th>
    </tr>
    </thead>
         <foreach name="list" item="l_val" key="lk">
        <tr>
            <td>{$lk+1}</td>
            <td><?php echo $equipment[$l_val['equipment_id']]['number'];?></td>
            <td><?php echo $equipment[$l_val['equipment_id']]['name'];?></td>
            <td>{$l_val.totals}</td>
            <td>{$time.stime|date='Y-m-d',###}--{$time.etime|date='Y-m-d',###}</td>
            <td>
                <a href="{:U('Home/FaultRecords/index',array('equ_id'=>$l_val['equipment_id']))}" title="详细记录" ><icon class="icon-eye-open" ></icon></a>
            </td>
        </tr>
    </foreach>
</table>

<include file="Public:footer" />

